package com.baizhi.Api;

import com.baizhi.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/bannerApi")
public class BannerApi {
    @Autowired
    private BannerService bannerService;

    @GetMapping("testBanner/{page},{limit},{bannerOldName}")
    public Map selectAll(@PathVariable("page") int page, @PathVariable("limit") int limit,@PathVariable("bannerOldName") String bannerOldName){
        return bannerService.selectAll(page, limit, bannerOldName);
    }

}
